package com.usian.feign;

import com.usian.pojo.TbItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "usian-cart-service")
public interface CarFeign {

    @RequestMapping("insertCart")
    Boolean insertCart(@RequestParam String userId,@RequestBody Map cart);

    @RequestMapping("selectCartByUserId")
    Map<String, TbItem> selectCartByUserId(@RequestParam String userId);
}
